<?php
namespace Umpadmin\Controller;
use Think\Controller;
class TestController extends ExtendController {
	public function index(){
		Vendor('taobaosdk.top.request.FuwuSpBillreordAddRequest');
		Vendor('taobaosdk.top.request.FuwuSkuGetRequest');
		
		$req = new \FuwuSkuGetRequest;
		$req->setArticleCode("FW_GOODS-1840332");
		$req->setNick("kekydream");
		$req->setAppKey(C("UMP_KEY"));
		$resp = $this->c->execute($req, session("access_token"));
		print_r($resp);
		echo C("UMP_KEY");
die();
		$req = new \FuwuSpBillreordAddRequest;
		$param_bill_record_d_t_o = new \stdClass();
		$param_bill_record_d_t_o->start_date="2015-08-28 11:22:09";
		$param_bill_record_d_t_o->status="1";
		$param_bill_record_d_t_o->extend1="demo";
		$param_bill_record_d_t_o->extend10="demo";
		$param_bill_record_d_t_o->appkey=C("UMP_KEY");
		$param_bill_record_d_t_o->extend3="demo";
		$param_bill_record_d_t_o->extend2="demo";
		$param_bill_record_d_t_o->extend5="demo";
		$param_bill_record_d_t_o->extend4="demo";
		$param_bill_record_d_t_o->type="2";
		$param_bill_record_d_t_o->target_no="demo";
		$param_bill_record_d_t_o->extend7="demo";
		$param_bill_record_d_t_o->extend6="demo";
		$param_bill_record_d_t_o->extend9="demo";
		$param_bill_record_d_t_o->out_confirm_id="demo";
		$param_bill_record_d_t_o->extend8="demo";
		$param_bill_record_d_t_o->fee="100";
		$param_bill_record_d_t_o->nick="kekydream";
		$param_bill_record_d_t_o->order_id="101801964990555";
		$param_bill_record_d_t_o->out_order_id="demo";
		$req->setParamBillRecordDTO(json_encode($param_bill_record_d_t_o));
		$resp = $this->c->execute($req, session("access_token"));
		print_r($resp);
	}
	public function ajax(){
		$arr = '{
  "rows":[
  {
    "title":"日历",
    "href" : "javascript:void(0);",
    "src" : "http://www.builive.com/assets/img/calendar.png",
    "desc":"<p>日历控件包括，日历选择器，日历控件，月份选择控件，时间选择控件。</p>"
  },
  {
    "title":"弹出框",
    "href" : "javascript:void(0);",
    "src" : "http://www.builive.com/assets/img/dialog.png",
    "desc":"弹出框包括：模态窗口，非模态窗口，可以自定义内容和按钮，方便灵活的使用。"
  },
  {
    "title":"消息提示",
    "href" : "javascript:void(0);",
    "src" : "http://www.builive.com/assets/img/message.png",
    "desc":"<p>提示/确认框包括：消息、警告、确认、错误已经成功提示，确认框同时包含确认和取消，都可以自定义内容和回调函数。</p>"
  },
  {
    "title":"菜单",
    "href" : "javascript:void(0);",
    "src" : "http://www.builive.com/assets/img/menu.png",
    "desc":"<p>分为右键菜单，弹出菜单，左侧菜单以及各种自定义的菜单</p>"
  }
],
"results" : 100
}';
	echo $arr;	
	}
}